package com.qf.dao;

import com.qf.pojo.po.XcHotelRoom;
import com.qf.pojo.resp.XcHotelResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HotelMapper {

    List<XcHotelResp> recommend();

    List<XcHotelResp> cityHotelName(@Param("cityName") String cityName);

    XcHotelResp hotelDetails(Integer hotelId);

    int updateRoomNum(@Param("roomNum") Integer roomNum, @Param("roomId") Integer roomId);

    void addRoomNum(@Param("roomNum") Integer roomNum, @Param("roomId") Integer roomId);

    XcHotelRoom selectRoomNum(Integer roomId);

}
